﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace ExpertSMS.Models
{
    public class ForceDeleteInitializer : IDatabaseInitializer<ExpertSMSContext>
    {
        private readonly IDatabaseInitializer<ExpertSMSContext> _initializer;

        public ForceDeleteInitializer(IDatabaseInitializer<ExpertSMSContext> innerInitializer)
        {
            _initializer = innerInitializer;
        }

       
        public void InitializeDatabase(ExpertSMSContext context)
        {
            context.Database.Delete();
            _initializer.InitializeDatabase(context);
        }

    }
}